#include "BarberShop.h"

BarberShop* BarberShop::_shop = NULL;

BarberShop::BarberShop()
:
maxSeats(3),
_currentSeat(0)
{
}

BarberShop* BarberShop::GetInstance()
{
	if (!_shop)
	{
		_shop = new BarberShop();
	}

	return _shop;
}

void BarberShop::IncreaseCurrentSeat()
{
	if (_currentSeat < maxSeats)
	{
		++_currentSeat;
	}
}

void BarberShop::DecreaseCurrentSeat()
{
	if (_currentSeat > 0)
	{
		--_currentSeat;
	}
}